<?php
session_start();
require_once('inc/session.php');
$msg = @$_GET['msg'];
?>
<!--Force IE6 into quirks mode with this comment tag-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>iFrame Administration</title>
<script language="javascript" src="js/prototype.js"></script>
<link rel="stylesheet" href="css/admin.css" type="text/css" />
</head>
<body onload="">
<div id="framecontent">
<div class="innertube">
<h1>iFrame Administration&nbsp;&nbsp;Welcome, <?php echo @$curUser;?> | <a href="index.php?l=1&msg=2">Logout</a></h1>
</div>
</div>

<div id="maincontent">
<div class="innertube">
<?php 
if (!$msg == '') {
echo "<div id=\"msg\">". $msg ."</div>";
}
?>
<form action="process.php" method="post" name="updateForm">
<input type="hidden" name="action" value="updateFrame"
<fieldset>
<legend>iFrame Information Update</legend>
	<label for="name" accesskey="n">Name: </label>
		<input type="text" id="name" name="name" tabindex="1" value="" title="Name"><br>
	<label for="dob" accesskey="b">Date of Birth: </label>
		<input type="text" id="dob" name="dob" tabindex="2" title="Date of Birth"><br>
	<label for="dod" accesskey="d">Date of Death: </label>
		<input type="text" id="dod" name="dod" tabindex="3" title="Date of Death"><br>
	<label for="arrow">Arrow Direction: </label>
		<select name="arrow" id="arrow">
		<option value="blank">No Arrow</option>
		<option value="right">Right</option>
		<option value="left">Left</option>
		</select><br />
			Status:<select name="status" id="status">
		<option value="0">Inactive</option>
		<option value="1">Active</option>
		</select><br />

	<input type="submit" value="Update" />

</fieldset>
</form>

<fieldset>
<legend>Current information</legend>
<!-- echo current iFrame information here -->
<?php
switch($status){
case 0:
$status = "Inactive";
break;
case 1:
$status = "Active";
break;
}
switch($arrow){
case "blank":
$arrow = "No Arrow";
break;
case "left":
$arrow = "Left Arrow";
break;
case "right":
$arrow = "right";
break;
}
?>
<b>Status:</b> <?php echo $status; ?><br />
<b>Name:</b> <?php echo $name; ?><br />
<b>Date of Birth:</b> <?php echo $dob; ?><br />
<b>Date of Death:</b> <?php echo $dod; ?><br />
<b>Arrow:</b> <?php echo $arrow; ?>
</fieldset>
</div>
</div>
</body>
</html>
